﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace NewtifyMe.DataTypes
{
    [XmlRoot(ElementName = "feed", Namespace = "urn:schemas-microsoft-com:xslt")] 
    public class XFeed
    {
        [XmlElement(ElementName = "title")]
        public String Title { get; set; }

        [XmlElement(ElementName = "lastBuildDate")]
        public String LastBuildDate { get; set; }

        //[XmlElement(ElementName = "item")]
        //public Entry[] Entries { get; set; }

    }

    
    public class Entry
    {
        [XmlElement(ElementName = "title")]
        public String Title { get; set; }

        [XmlElement(ElementName = "description")]
        public String Description { get; set; }

        [XmlElement(ElementName = "pubDate")]
        public String PublictionDate { get; set; }

        [XmlElement(ElementName = "link")]
        public String Link { get; set; }

        [XmlElement(ElementName = "category")]
        public String Categoria { get; set; }

    }


    public class Link
    {
        [XmlAttribute(AttributeName = "type")]
        public String type { get; set; }


        [XmlAttribute(AttributeName = "type")]
        public String href { get; set; }

        //[XmlElement(ElementName = "link")]
        //public String Url { get; set; }
    }
}
